package com.example.u8test.gson;

public class TokenResponse {

    /**
     * errcode : 0
     * errmsg : 成功
     * token : {"appKey":"opa5251de05950a5ce6","expiresIn":7200,"id":"0e27127f3f274aa9bc6b3cf2ba573d2d"}
     */

    private String errcode;
    private String errmsg;
    private TokenBean token;

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public TokenBean getToken() {
        return token;
    }

    public void setToken(TokenBean token) {
        this.token = token;
    }

    public static class TokenBean {
        /**
         * appKey : opa5251de05950a5ce6
         * expiresIn : 7200
         * id : 0e27127f3f274aa9bc6b3cf2ba573d2d
         */

        private String appKey;
        private int expiresIn;
        private String id;

        public String getAppKey() {
            return appKey;
        }

        public void setAppKey(String appKey) {
            this.appKey = appKey;
        }

        public int getExpiresIn() {
            return expiresIn;
        }

        public void setExpiresIn(int expiresIn) {
            this.expiresIn = expiresIn;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }
}
